package com.elminster.dao.impl;

import java.util.List;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Component;

import com.elminster.dao.common.impl.GenericDaoImpl;
import com.elminster.entity.base.Catalog;

/**
 * A data access object (DAO) providing persistence and search support for
 * Catalog entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see com.elminster.entity.base.Catalog
 * @author MyEclipse Persistence Tools
 */

@Component
public class CatalogDaoImpl extends GenericDaoImpl<Catalog, Integer> {
    
    private static final Log log = LogFactory.getLog(CatalogDaoImpl.class);
    // property constants
    public static final String NAME = "name";
    
    public CatalogDaoImpl() {
        this(Catalog.class);
    }

    public CatalogDaoImpl(Class<Catalog> type) {
        super(type);
    }

    public List<Catalog> findByName(Object name) {
        return findByProperty(NAME, name);
    }
}